import 'package:flutter/material.dart';
import 'package:zhaoxiaowu_app/global/themes.dart';

class ThemeViewModel extends ChangeNotifier {
  int _colorIndex = 0;

  int get colorIndex {
    return _colorIndex;
  }

  void setColorIndex(int index) {
    if (index > themes.length - 1) return;

    if (index == _colorIndex) return;

    _colorIndex = index;
    notifyListeners();
  }
}
